/*****************************************************************************
 *   Copyright(C)2009-2022 by VSF Team                                       *
 *                                                                           *
 *  Licensed under the Apache License, Version 2.0 (the "License");          *
 *  you may not use this file except in compliance with the License.         *
 *  You may obtain a copy of the License at                                  *
 *                                                                           *
 *     http://www.apache.org/licenses/LICENSE-2.0                            *
 *                                                                           *
 *  Unless required by applicable law or agreed to in writing, software      *
 *  distributed under the License is distributed on an "AS IS" BASIS,        *
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
 *  See the License for the specific language governing permissions and      *
 *  limitations under the License.                                           *
 *                                                                           *
 ****************************************************************************/


//! \note User Level Application Configuration

#ifndef __VSF_USR_CFG_H__
#define __VSF_USR_CFG_H__

/*============================ INCLUDES ======================================*/
/*============================ MACROS ========================================*/

#define __H7__
#define __H7P0P20N0L176__
#define VSF_DRIVER_HEADER                           \
    "../../../source/hal/driver/hme/driver.h"


#define VSF_SYSTIMER_FREQ                               (100 * 1000 * 1000)

#define VSF_KERNEL_CFG_SUPPORT_THREAD                   DISABLED
#define VSF_KERNEL_CFG_ENTRY_IS_MAIN                    ENABLED

#define VSF_OS_CFG_ADD_EVTQ_TO_IDLE                     ENABLED
#define VSF_OS_CFG_MAIN_STACK_SIZE                      (4 * 1024)

#define VSF_ARCH_CFG_CALLSTACK_TRACE                    DISABLED

#define VSF_OS_CFG_EVTQ_POOL_SIZE                       128
#define VSF_OS_CFG_DEFAULT_TASK_FRAME_POOL_SIZE         32
#define VSF_POOL_CFG_FEED_ON_HEAP                       DISABLED

#define __VSF_HEADER_ONLY_SHOW_VENDOR_INFO__

// component configure
#define VSF_USE_HEAP                                    ENABLED
#   define VSF_HEAP_CFG_MCB_MAGIC_EN                    ENABLED
#   define VSF_HEAP_SIZE                                (1 * 1024)

#define VSF_ASSERT(...)                                 if (!(__VA_ARGS__)) { while(1); }

#define VSF_HAL_USE_I2C                  ENABLED
#define VSF_HAL_USE_GPIO                 ENABLED
#define VSF_HAL_USE_DMA                  ENABLED

#define VSF_STHAL_TICK_USE_SYSTIMER                 ENABLED

#define VSF_HAL_USE_USART                               ENABLED
#   define VSF_STHAL_CFG_CALL_USART_PREFIX     vsf_hw

#define VSF_HAL_USE_IO                   DISABLED
#define VSF_HAL_USE_PM                   DISABLED
#define VSF_HAL_USE_SPI                  DISABLED
#define VSF_HAL_USE_FIFO2REQ_SPI         DISABLED
#define VSF_HAL_USE_MULTIPLEX_CS_SPI     DISABLED
#define VSF_HAL_USE_MULTIPLEX_I2C        DISABLED
#define VSF_HAL_USE_MERGER_REQUEST_I2C   DISABLED
#define VSF_HAL_USE_I2S                  DISABLED
#define VSF_HAL_USE_TIMER                DISABLED
#define VSF_HAL_USE_ADC                  DISABLED
#define VSF_HAL_USE_DAC                  DISABLED
#define VSF_HAL_USE_WDT                  DISABLED
#define VSF_HAL_USE_RTC                  DISABLED
#define VSF_HAL_USE_FLASH                DISABLED
#define VSF_HAL_USE_PWM                  DISABLED
#define VSF_HAL_USE_MMC                  DISABLED

/*============================ TYPES =========================================*/
/*============================ GLOBAL VARIABLES ==============================*/
/*============================ LOCAL VARIABLES ===============================*/
/*============================ PROTOTYPES ====================================*/
/*============================ INCLUDES ======================================*/

#endif
/* EOF */
